home *** CD-ROM | disk | FTP | other *** search
/ Especial Multimedia / Especial Multimedia.iso / Multimed / Prg / WAVPLUS.ZIP / WDEVICE.WD_ / WDEVICE.WD
Text File  |  1997-09-14  |  8KB  |  253 lines

  1. VERSION 2.00
  2. Begin Form Wdevice 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "WAV Device Info"
  6.    ClientHeight    =   3930
  7.    ClientLeft      =   2220
  8.    ClientTop       =   1545
  9.    ClientWidth     =   3975
  10.    ControlBox      =   0   'False
  11.    Height          =   4335
  12.    Left            =   2160
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   3930
  17.    ScaleWidth      =   3975
  18.    Top             =   1200
  19.    Width           =   4095
  20.    Begin CommandButton CmdOkay 
  21.       BackColor       =   &H00C0C0C0&
  22.       Cancel          =   -1  'True
  23.       Caption         =   "O &K A Y"
  24.       Default         =   -1  'True
  25.       Height          =   375
  26.       Left            =   240
  27.       TabIndex        =   0
  28.       Top             =   3360
  29.       Width           =   3495
  30.    End
  31.    Begin Label Label2 
  32.       Alignment       =   2  'Center
  33.       BackStyle       =   0  'Transparent
  34.       Caption         =   "Label2"
  35.       Height          =   195
  36.       Index           =   7
  37.       Left            =   240
  38.       TabIndex        =   16
  39.       Top             =   2880
  40.       Width           =   3495
  41.    End
  42.    Begin Label Label2 
  43.       Alignment       =   1  'Right Justify
  44.       BackStyle       =   0  'Transparent
  45.       Caption         =   "Label2"
  46.       Height          =   195
  47.       Index           =   6
  48.       Left            =   2700
  49.       TabIndex        =   15
  50.       Top             =   2220
  51.       Width           =   1035
  52.    End
  53.    Begin Label Label2 
  54.       Alignment       =   1  'Right Justify
  55.       BackStyle       =   0  'Transparent
  56.       Caption         =   "Label2"
  57.       Height          =   195
  58.       Index           =   5
  59.       Left            =   2580
  60.       TabIndex        =   14
  61.       Top             =   1980
  62.       Width           =   1155
  63.    End
  64.    Begin Label Label1 
  65.       Alignment       =   2  'Center
  66.       BackStyle       =   0  'Transparent
  67.       Caption         =   "Manufacturer's ID:"
  68.       Height          =   195
  69.       Index           =   7
  70.       Left            =   240
  71.       TabIndex        =   13
  72.       Top             =   2640
  73.       Width           =   3495
  74.    End
  75.    Begin Label Label1 
  76.       BackStyle       =   0  'Transparent
  77.       Caption         =   "Device Version:"
  78.       Height          =   195
  79.       Index           =   6
  80.       Left            =   240
  81.       TabIndex        =   12
  82.       Top             =   2220
  83.       Width           =   2055
  84.    End
  85.    Begin Label Label1 
  86.       BackStyle       =   0  'Transparent
  87.       Caption         =   "Volume Control Supported:"
  88.       Height          =   195
  89.       Index           =   5
  90.       Left            =   240
  91.       TabIndex        =   11
  92.       Top             =   1980
  93.       Width           =   2355
  94.    End
  95.    Begin Label Label2 
  96.       Alignment       =   1  'Right Justify
  97.       BackStyle       =   0  'Transparent
  98.       Caption         =   "Label2"
  99.       Height          =   195
  100.       Index           =   4
  101.       Left            =   2400
  102.       TabIndex        =   6
  103.       Top             =   1440
  104.       Width           =   1335
  105.    End
  106.    Begin Label Label2 
  107.       Alignment       =   1  'Right Justify
  108.       BackStyle       =   0  'Transparent
  109.       Caption         =   "Label2"
  110.       Height          =   195
  111.       Index           =   3
  112.       Left            =   2400
  113.       TabIndex        =   7
  114.       Top             =   1200
  115.       Width           =   1335
  116.    End
  117.    Begin Label Label2 
  118.       Alignment       =   1  'Right Justify
  119.       BackStyle       =   0  'Transparent
  120.       Caption         =   "Label2"
  121.       Height          =   195
  122.       Index           =   2
  123.       Left            =   2400
  124.       TabIndex        =   10
  125.       Top             =   960
  126.       Width           =   1335
  127.    End
  128.    Begin Label Label2 
  129.       Alignment       =   1  'Right Justify
  130.       BackStyle       =   0  'Transparent
  131.       Caption         =   "Label2"
  132.       Height          =   195
  133.       Index           =   1
  134.       Left            =   2400
  135.       TabIndex        =   9
  136.       Top             =   480
  137.       Width           =   1335
  138.    End
  139.    Begin Label Label2 
  140.       Alignment       =   1  'Right Justify
  141.       BackStyle       =   0  'Transparent
  142.       Caption         =   "Label2"
  143.       Height          =   200
  144.       Index           =   0
  145.       Left            =   2400
  146.       TabIndex        =   8
  147.       Top             =   240
  148.       Width           =   1335
  149.    End
  150.    Begin Label Label1 
  151.       BackStyle       =   0  'Transparent
  152.       Caption         =   "Maximum Sample Rate:"
  153.       Height          =   195
  154.       Index           =   4
  155.       Left            =   240
  156.       TabIndex        =   5
  157.       Top             =   1440
  158.       Width           =   2055
  159.    End
  160.    Begin Label Label1 
  161.       BackStyle       =   0  'Transparent
  162.       Caption         =   "Maximum Channels:"
  163.       Height          =   195
  164.       Index           =   3
  165.       Left            =   240
  166.       TabIndex        =   4
  167.       Top             =   1200
  168.       Width           =   2055
  169.    End
  170.    Begin Label Label1 
  171.       BackStyle       =   0  'Transparent
  172.       Caption         =   "Maximum Bit Size:"
  173.       Height          =   195
  174.       Index           =   2
  175.       Left            =   240
  176.       TabIndex        =   3
  177.       Top             =   960
  178.       Width           =   2055
  179.    End
  180.    Begin Label Label1 
  181.       BackStyle       =   0  'Transparent
  182.       Caption         =   "Can Record WAVs:"
  183.       Height          =   195
  184.       Index           =   1
  185.       Left            =   240
  186.       TabIndex        =   2
  187.       Top             =   480
  188.       Width           =   2055
  189.    End
  190.    Begin Label Label1 
  191.       BackStyle       =   0  'Transparent
  192.       Caption         =   "Can Play WAVs:"
  193.       Height          =   195
  194.       Index           =   0
  195.       Left            =   240
  196.       TabIndex        =   1
  197.       Top             =   240
  198.       Width           =   2055
  199.    End
  200. End
  201.  
  202. Sub CmdOkay_Click ()
  203.     Unload Me
  204. End Sub
  205.  
  206. Sub Form_Load ()
  207.     FormCenterForm Me, DemoMain
  208.     If HowManyWavPlayDevices() = 0 Then
  209.         CanPlay$ = "False"
  210.         CanRecord$ = "False"
  211.         Channels$ = "0"
  212.         SampleBitSize$ = "0"
  213.         SampleRate$ = "0"
  214.         Else
  215.         CanPlay$ = Space$(255)
  216.         WavCanPlay CanPlay$
  217.         CanRecord$ = Space$(255)
  218.         WavCanRecord CanRecord$
  219.         SampleBitSize$ = Space$(255)
  220.         WavMaxBitSize SampleBitSize$
  221.         Channels$ = Space$(255)
  222.         WavMaxChannels Channels$
  223.         SampleRate$ = Space$(255)
  224.         WavMaxSampleRate SampleRate$
  225.         Manufacturer$ = Space$(255)
  226.         WavManufacturer Manufacturer$
  227.         ret% = WavVolumeSupported()
  228.         If ret% = 0 Then
  229.             VolumeSupport$ = "no"
  230.             Else
  231.             VolumeSupport$ = "yes"
  232.             End If
  233.         ret% = WavVersion()
  234.         SoundVersion$ = Format$(ret% / 100, "##0.00")
  235.  
  236.         End If
  237.     Label2(0).Caption = CanPlay$
  238.     Label2(1).Caption = CanRecord$
  239.     Label2(2).Caption = SampleBitSize$
  240.     Label2(3).Caption = Channels$
  241.     Label2(4).Caption = SampleRate$
  242.     Label2(5).Caption = VolumeSupport$
  243.     Label2(6).Caption = SoundVersion$
  244.     Label2(7).Caption = Manufacturer$
  245.     Screen.MousePointer = 0
  246. End Sub
  247.  
  248. Sub Form_Paint ()
  249.     DoForm3D Me, "raised", 2, 0
  250.     DoForm3D Me, "sunken", 2, 2
  251. End Sub
  252.  
  253.